<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta name="Content-Type" content="text/html; charset=UTF-8" />
<title>Module: Sass::Plugin</title>
<link rel="stylesheet" href="style.css" tppabs="http://sass-lang.com/docs/yardoc/css/style.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="common.css" tppabs="http://sass-lang.com/docs/yardoc/css/common.css" type="text/css" media="screen" charset="utf-8" />

<script type="text/javascript" charset="utf-8">
  relpath = '..';
  if (relpath != '') relpath += '/';
</script>
<script type="text/javascript" charset="utf-8" src="jquery.js" tppabs="http://sass-lang.com/docs/yardoc/js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="app.js" tppabs="http://sass-lang.com/docs/yardoc/js/app.js"></script>

  </head>
  <body>
    <script type="text/javascript" charset="utf-8">
      if (window.top.frames.main) document.body.className = 'frames';
    </script>
    
    <div id="header">
      <div id="menu">
  
    <a href="_index.html" tppabs="http://sass-lang.com/docs/yardoc/_index.html">Index (P)</a> &raquo; 
    <span class='title'><a href="Sass-1.html" tppabs="http://sass-lang.com/docs/yardoc/Sass.html" title="Sass (module)">Sass</a></span>
     &raquo; 
    <span class="title">Plugin</span>
  
  
  <div class="noframes"><span class="title">(</span><a href="javascript:if(confirm(%27http://sass-lang.com/docs/yardoc/Sass/.  \n\nThis file was not retrieved by Teleport Pro, because the server reports that this file cannot be found.  \n\nDo you want to open it from the server?%27))window.location=%27http://sass-lang.com/docs/yardoc/Sass/.%27" tppabs="http://sass-lang.com/docs/yardoc/Sass/." target="_top">no frames</a><span class="title">)</span></div>
</div>

      <div id="search">
  <a id="class_list_link" href="#">Class List</a>
  <a id="method_list_link" href="#">Method List</a>
  <a id ="file_list_link" href="#">File List</a>
</div>

      <div class="clear"></div>
    </div>
    
    <iframe id="search_frame"></iframe>
    
    <div id="content"><h1>Module: Sass::Plugin 
  
  
</h1>

<dl class="box">
  
  
    
      <dt class="r1">Extends:</dt>
      <dd class="r1"><a href="" title="Sass::Plugin (module)">Plugin</a></dd>
      
    
  
    
      <dt class="r2">Includes:</dt>
      <dd class="r2"><a href="Util.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html" title="Sass::Util (module)">Util</a></dd>
      
    
  
  
    <dt class="r1 last">Defined in:</dt>
    <dd class="r1 last">/var/www/sass-pages/.sass/lib/sass/plugin.rb<span class="defines">,<br />
  /var/www/sass-pages/.sass/lib/sass/plugin/rack.rb,<br /> /var/www/sass-pages/.sass/lib/sass/plugin/compiler.rb,<br /> /var/www/sass-pages/.sass/lib/sass/plugin/configuration.rb,<br /> /var/www/sass-pages/.sass/lib/sass/plugin/staleness_checker.rb</span>
</dd>
  
</dl>
<div class="clear"></div>

<h2>Overview</h2><div class="docstring">
  <div class="discussion">
    <p>This module provides a single interface to the compilation of Sass/SCSS files for an application. It provides global options and checks whether CSS files need to be updated.</p>

<p>This module is used as the primary interface with Sass when it&#8217;s used as a plugin for various frameworks. All Rack-enabled frameworks are supported out of the box. The plugin is <a href="file.SASS_REFERENCE.html#rails_merb_plugin" tppabs="http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#rails_merb_plugin" title="automatically activated for Rails and Merb">automatically activated for Rails and Merb</a>. Other frameworks must enable it explicitly; see <tt><a href="Rack.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Plugin/Rack.html" title="Sass::Plugin::Rack (class)">Sass::Plugin::Rack</a></tt>.</p>

<p>This module has a large set of callbacks available to allow users to run code (such as logging) when certain things happen. All callback methods are of the form <code>on_#{name}</code>, and they all take a block that&#8217;s called when the given action occurs.</p>

<p>Note that this class proxies almost all methods to its <tt><a href="Compiler.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Plugin/Compiler.html" title="Sass::Plugin::Compiler (class)">Sass::Plugin::Compiler</a></tt> instance. See <tt><a href="#compiler-instance_method" title="Sass::Plugin#compiler (method)">#compiler</a></tt>.</p>

  </div>
</div>
<div class="tags">
  
  <div class="examples">
    <h3>Examples:</h3>
    
      <h4>Using a callback</h4>
      <pre class="example code">  Sass::Plugin.on_updating_stylesheet do |template, css|
    puts "Compiling #{template} to #{css}"
  end
  Sass::Plugin.update_stylesheets
    #=> Compiling app/sass/screen.scss to public/stylesheets/screen.css
    #=> Compiling app/sass/print.scss to public/stylesheets/print.css
    #=> Compiling app/sass/ie.scss to public/stylesheets/ie.css</pre>
    
  </div>

  <h3>See Also:</h3>
  <ul class="see">
    
      <li><a href="Compiler.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Plugin/Compiler.html" title="Sass::Plugin::Compiler (class)">Sass::Plugin::Compiler</a></li>
    
  </ul>

</div><h2>Defined Under Namespace</h2>
<p class="children">
   
    
      <strong class="modules">Modules:</strong> <a href="Configuration.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Plugin/Configuration.html" title="Sass::Plugin::Configuration (module)">Configuration</a>
    
   
    
      <strong class="classes">Classes:</strong> <a href="Compiler.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Plugin/Compiler.html" title="Sass::Plugin::Compiler (class)">Compiler</a>, <a href="Rack.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Plugin/Rack.html" title="Sass::Plugin::Rack (class)">Rack</a>, <a href="StalenessChecker.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Plugin/StalenessChecker.html" title="Sass::Plugin::StalenessChecker (class)">StalenessChecker</a>
    
  
</p>

  <h2>Constant Summary</h2>
  


  
  
  
  
  <h3 class="inherited">Constants included from <a href="Util.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html" title="Sass::Util (module)">Util</a></h3>
  <p class="inherited"><a href="Util.html#RUBY_ENGINE-constant" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#RUBY_ENGINE-constant" title="Sass::Util::RUBY_ENGINE (constant)">RUBY_ENGINE</a>, <a href="Util.html#RUBY_VERSION-constant" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#RUBY_VERSION-constant" title="Sass::Util::RUBY_VERSION (constant)">RUBY_VERSION</a></p>

  <h2>Instance Attribute Summary</h2>
  <ul class="summary">
    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#checked_for_updates-instance_method" title="#checked_for_updates (instance method)">- (Boolean) <strong>checked_for_updates</strong> </a>
    

    
  </span>
  
  
    
    
  
  
  
  

  
    <span class="summary_desc">Whether or not Sass has <strong>ever</strong> checked if the stylesheets need to be updated (in this Ruby instance).</span>
  
</li>

    
  </ul>


  <h2>Instance Method Summary</h2>

  <ul class="summary">
    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#check_for_updates-instance_method" title="#check_for_updates (instance method)">- <strong>check_for_updates</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Same as <tt><a href="#update_stylesheets-instance_method" title="Sass::Plugin#update_stylesheets (method)">#update_stylesheets</a></tt>, but respects <tt><a href="#checked_for_updates-instance_method" title="Sass::Plugin#checked_for_updates (method)">#checked_for_updates</a></tt> and the <a href="file.SASS_REFERENCE.html#always_update-option" tppabs="http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#always_update-option" title="&lt;code&gt;:always_update&lt;/code&gt;"><code>:always_update</code></a> and <a href="file.SASS_REFERENCE.html#always_check-option" tppabs="http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#always_check-option" title="&lt;code&gt;:always_check&lt;/code&gt;"><code>:always_check</code></a> options.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#compiler-instance_method" title="#compiler (instance method)">- (Sass::Plugin::Compiler) <strong>compiler</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Returns the singleton compiler instance.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#force_update_stylesheets-instance_method" title="#force_update_stylesheets (instance method)">- <strong>force_update_stylesheets</strong>(individual_files = []) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Updates all stylesheets, even those that aren&#8217;t out-of-date.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#method_missing-instance_method" title="#method_missing (instance method)">- <strong>method_missing</strong>(method, *args, &amp;block) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">All other method invocations are proxied to the <tt><a href="#compiler-instance_method" title="Sass::Plugin#compiler (method)">#compiler</a></tt>.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#options-instance_method" title="#options (instance method)">- <strong>options</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">There&#8217;s a small speedup by not using method missing for frequently delegated methods.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#respond_to%3F-instance_method" title="#respond_to? (instance method)">- (Boolean) <strong>respond_to?</strong>(method) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">For parity with method_missing.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#update_stylesheets-instance_method" title="#update_stylesheets (instance method)">- <strong>update_stylesheets</strong>(individual_files = []) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Updates out-of-date stylesheets.</span>
  
</li>

    
  </ul>

  
  
  
  
  
  <h3 class="inherited">Methods included from <a href="Util.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html" title="Sass::Util (module)">Util</a></h3>
  <p class="inherited"><a href="Util.html#abstract-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#abstract-instance_method" title="Sass::Util#abstract (method)">#abstract</a>, <a href="Util.html#ap_geq%3F-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#ap_geq%3F-instance_method" title="Sass::Util#ap_geq? (method)">#ap_geq?</a>, <a href="Util.html#ap_geq_3%3F-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#ap_geq_3%3F-instance_method" title="Sass::Util#ap_geq_3? (method)">#ap_geq_3?</a>, <a href="Util.html#array_minus-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#array_minus-instance_method" title="Sass::Util#array_minus (method)">#array_minus</a>, <a href="Util.html#av_template_class-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#av_template_class-instance_method" title="Sass::Util#av_template_class (method)">#av_template_class</a>, <a href="Util.html#caller_info-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#caller_info-instance_method" title="Sass::Util#caller_info (method)">#caller_info</a>, <a href="Util.html#check_encoding-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#check_encoding-instance_method" title="Sass::Util#check_encoding (method)">#check_encoding</a>, <a href="Util.html#check_range-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#check_range-instance_method" title="Sass::Util#check_range (method)">#check_range</a>, <a href="Util.html#check_sass_encoding-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#check_sass_encoding-instance_method" title="Sass::Util#check_sass_encoding (method)">#check_sass_encoding</a>, <a href="Util.html#destructure-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#destructure-instance_method" title="Sass::Util#destructure (method)">#destructure</a>, <a href="Util.html#enum_cons-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#enum_cons-instance_method" title="Sass::Util#enum_cons (method)">#enum_cons</a>, <a href="Util.html#enum_slice-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#enum_slice-instance_method" title="Sass::Util#enum_slice (method)">#enum_slice</a>, <a href="Util.html#enum_with_index-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#enum_with_index-instance_method" title="Sass::Util#enum_with_index (method)">#enum_with_index</a>, <a href="Util.html#extract%21-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#extract%21-instance_method" title="Sass::Util#extract! (method)">#extract!</a>, <a href="Util.html#extract_values-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#extract_values-instance_method" title="Sass::Util#extract_values (method)">#extract_values</a>, <a href="Util.html#flatten-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#flatten-instance_method" title="Sass::Util#flatten (method)">#flatten</a>, <a href="Util.html#glob-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#glob-instance_method" title="Sass::Util#glob (method)">#glob</a>, <a href="Util.html#group_by_to_a-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#group_by_to_a-instance_method" title="Sass::Util#group_by_to_a (method)">#group_by_to_a</a>, <a href="Util.html#has%3F-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#has%3F-instance_method" title="Sass::Util#has? (method)">#has?</a>, <a href="Util.html#hash_to_a-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#hash_to_a-instance_method" title="Sass::Util#hash_to_a (method)">#hash_to_a</a>, <a href="Util.html#inject_values-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#inject_values-instance_method" title="Sass::Util#inject_values (method)">#inject_values</a>, <a href="Util.html#inspect_obj-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#inspect_obj-instance_method" title="Sass::Util#inspect_obj (method)">#inspect_obj</a>, <a href="Util.html#intersperse-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#intersperse-instance_method" title="Sass::Util#intersperse (method)">#intersperse</a>, <a href="Util.html#ironruby%3F-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#ironruby%3F-instance_method" title="Sass::Util#ironruby? (method)">#ironruby?</a>, <a href="Util.html#jruby1_6%3F-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#jruby1_6%3F-instance_method" title="Sass::Util#jruby1_6? (method)">#jruby1_6?</a>, <a href="Util.html#jruby%3F-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#jruby%3F-instance_method" title="Sass::Util#jruby? (method)">#jruby?</a>, <a href="Util.html#jruby_version-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#jruby_version-instance_method" title="Sass::Util#jruby_version (method)">#jruby_version</a>, <a href="Util.html#lcs-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#lcs-instance_method" title="Sass::Util#lcs (method)">#lcs</a>, <a href="Util.html#macruby%3F-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#macruby%3F-instance_method" title="Sass::Util#macruby? (method)">#macruby?</a>, <a href="Util.html#map_hash-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#map_hash-instance_method" title="Sass::Util#map_hash (method)">#map_hash</a>, <a href="Util.html#map_keys-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#map_keys-instance_method" title="Sass::Util#map_keys (method)">#map_keys</a>, <a href="Util.html#map_vals-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#map_vals-instance_method" title="Sass::Util#map_vals (method)">#map_vals</a>, <a href="Util.html#merge_adjacent_strings-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#merge_adjacent_strings-instance_method" title="Sass::Util#merge_adjacent_strings (method)">#merge_adjacent_strings</a>, <a href="Util.html#ord-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#ord-instance_method" title="Sass::Util#ord (method)">#ord</a>, <a href="Util.html#paths-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#paths-instance_method" title="Sass::Util#paths (method)">#paths</a>, <a href="Util.html#powerset-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#powerset-instance_method" title="Sass::Util#powerset (method)">#powerset</a>, <a href="Util.html#rails_env-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#rails_env-instance_method" title="Sass::Util#rails_env (method)">#rails_env</a>, <a href="Util.html#rails_root-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#rails_root-instance_method" title="Sass::Util#rails_root (method)">#rails_root</a>, <a href="Util.html#rbx%3F-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#rbx%3F-instance_method" title="Sass::Util#rbx? (method)">#rbx?</a>, <a href="Util.html#restrict-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#restrict-instance_method" title="Sass::Util#restrict (method)">#restrict</a>, <a href="Util.html#ruby1%3F-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#ruby1%3F-instance_method" title="Sass::Util#ruby1? (method)">#ruby1?</a>, <a href="Util.html#ruby1_8%3F-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#ruby1_8%3F-instance_method" title="Sass::Util#ruby1_8? (method)">#ruby1_8?</a>, <a href="Util.html#ruby1_8_6%3F-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#ruby1_8_6%3F-instance_method" title="Sass::Util#ruby1_8_6? (method)">#ruby1_8_6?</a>, <a href="Util.html#sass_warn-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#sass_warn-instance_method" title="Sass::Util#sass_warn (method)">#sass_warn</a>, <a href="Util.html#scope-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#scope-instance_method" title="Sass::Util#scope (method)">#scope</a>, <a href="Util.html#set_eql%3F-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#set_eql%3F-instance_method" title="Sass::Util#set_eql? (method)">#set_eql?</a>, <a href="Util.html#set_hash-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#set_hash-instance_method" title="Sass::Util#set_hash (method)">#set_hash</a>, <a href="Util.html#silence_sass_warnings-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#silence_sass_warnings-instance_method" title="Sass::Util#silence_sass_warnings (method)">#silence_sass_warnings</a>, <a href="Util.html#silence_warnings-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#silence_warnings-instance_method" title="Sass::Util#silence_warnings (method)">#silence_warnings</a>, <a href="Util.html#strip_string_array-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#strip_string_array-instance_method" title="Sass::Util#strip_string_array (method)">#strip_string_array</a>, <a href="Util.html#subsequence%3F-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#subsequence%3F-instance_method" title="Sass::Util#subsequence? (method)">#subsequence?</a>, <a href="Util.html#substitute-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#substitute-instance_method" title="Sass::Util#substitute (method)">#substitute</a>, <a href="Util.html#to_hash-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#to_hash-instance_method" title="Sass::Util#to_hash (method)">#to_hash</a>, <a href="Util.html#undefined_conversion_error_char-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#undefined_conversion_error_char-instance_method" title="Sass::Util#undefined_conversion_error_char (method)">#undefined_conversion_error_char</a>, <a href="Util.html#version_geq-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#version_geq-instance_method" title="Sass::Util#version_geq (method)">#version_geq</a>, <a href="Util.html#version_gt-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#version_gt-instance_method" title="Sass::Util#version_gt (method)">#version_gt</a>, <a href="Util.html#windows%3F-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#windows%3F-instance_method" title="Sass::Util#windows? (method)">#windows?</a>, <a href="Util.html#with_extracted_values-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util.html#with_extracted_values-instance_method" title="Sass::Util#with_extracted_values (method)">#with_extracted_values</a></p>
<div id="method_missing_details" class="method_details_list">
  <h2>Dynamic Method Handling</h2>
  <p class="notice this">
    This class handles dynamic methods through the <tt>method_missing</tt> method
    
  </p>
  
    <div class="method_details first">
  <p class="signature first" id="method_missing-instance_method">
  
    - <strong>method_missing</strong>(method, *args, &amp;block) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>All other method invocations are proxied to the <tt><a href="#compiler-instance_method" title="Sass::Plugin#compiler (method)">#compiler</a></tt>.</p>

  </div>
</div>
<div class="tags">
  
  <h3>See Also:</h3>
  <ul class="see">
    
      <li><a href="#compiler-instance_method" title="Sass::Plugin#compiler (method)">#compiler</a></li>
    
      <li><a href="Compiler.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Plugin/Compiler.html" title="Sass::Plugin::Compiler (class)">Sass::Plugin::Compiler</a></li>
    
  </ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


105
106
107
108
109
110
111</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/plugin.rb', line 105</span>

def method_missing(method, *args, &block)
  if compiler.respond_to?(method)
    compiler.send(method, *args, &block)
  else
    super
  end
end</pre>
    </td>
  </tr>
</table>
</div>
  
</div>

  <div id="instance_attr_details" class="attr_details">
    <h2>Instance Attribute Details</h2>
    
      
      <span id="checked_for_updates=-instance_method"></span>
      <span id="checked_for_updates-instance_method"></span>
      <div class="method_details first">
  <p class="signature first" id="checked_for_updates-instance_method">
  
    - (<tt>Boolean</tt>) <strong>checked_for_updates</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Whether or not Sass has <strong>ever</strong> checked if the stylesheets need to be updated (in this Ruby instance).</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Boolean</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


44
45
46</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/plugin.rb', line 44</span>

def checked_for_updates
  @checked_for_updates
end</pre>
    </td>
  </tr>
</table>
</div>
    
  </div>


  <div id="instance_method_details" class="method_details_list">
    <h2>Instance Method Details</h2>
    
    
      <div class="method_details first">
  <p class="signature first" id="check_for_updates-instance_method">
  
    - <strong>check_for_updates</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Same as <tt><a href="#update_stylesheets-instance_method" title="Sass::Plugin#update_stylesheets (method)">#update_stylesheets</a></tt>, but respects <tt><a href="#checked_for_updates-instance_method" title="Sass::Plugin#checked_for_updates (method)">#checked_for_updates</a></tt> and the <a href="file.SASS_REFERENCE.html#always_update-option" tppabs="http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#always_update-option" title="&lt;code&gt;:always_update&lt;/code&gt;"><code>:always_update</code></a> and <a href="file.SASS_REFERENCE.html#always_check-option" tppabs="http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#always_check-option" title="&lt;code&gt;:always_check&lt;/code&gt;"><code>:always_check</code></a> options.</p>

  </div>
</div>
<div class="tags">
  
  <h3>See Also:</h3>
  <ul class="see">
    
      <li><a href="#update_stylesheets-instance_method" title="Sass::Plugin#update_stylesheets (method)">#update_stylesheets</a></li>
    
  </ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


51
52
53
54
55</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/plugin.rb', line 51</span>

def check_for_updates
  return unless !Sass::Plugin.checked_for_updates ||
      Sass::Plugin.options[:always_update] || Sass::Plugin.options[:always_check]
  update_stylesheets
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="compiler-instance_method">
  
    - (<tt><a href="Compiler.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Plugin/Compiler.html" title="Sass::Plugin::Compiler (class)">Sass::Plugin::Compiler</a></tt>) <strong>compiler</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Returns the singleton compiler instance. This compiler has been pre-configured according to the plugin configuration.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="Compiler.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Plugin/Compiler.html" title="Sass::Plugin::Compiler (class)">Sass::Plugin::Compiler</a></tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


62
63
64</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/plugin.rb', line 62</span>

def compiler
  @compiler ||= Compiler.new
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="force_update_stylesheets-instance_method">
  
    - <strong>force_update_stylesheets</strong>(individual_files = []) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Updates all stylesheets, even those that aren&#8217;t out-of-date. Ignores the cache.</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt>Array&lt;(String, String)&gt;</tt>)</span>
      
      
        <span class='name'>individual_files</span>
      
      
        <em class="default">(defaults to: <tt>[]</tt>)</em>
      
      
        &mdash;
        A list of files to check for updates <strong>in addition to those specified by the <a href="file.SASS_REFERENCE.html#template_location-option" tppabs="http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#template_location-option" title="&lt;code&gt;:template_location&lt;/code&gt; option"><code>:template_location</code> option</a>.</strong> The first string in each pair is the location of the Sass/SCSS file, the second is the location of the CSS file that it should be compiled to.
      
    </li>
  
</ul>

  <h3>See Also:</h3>
  <ul class="see">
    
      <li><a href="#update_stylesheets-instance_method" title="Sass::Plugin#update_stylesheets (method)">#update_stylesheets</a></li>
    
  </ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


94
95
96
97
98
99</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/plugin.rb', line 94</span>

def force_update_stylesheets(individual_files = [])
  Compiler.new(options.dup.merge(
      :never_update => false,
      :always_update => true,
      :cache => false)).update_stylesheets(individual_files)
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="options-instance_method">
  
    - <strong>options</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>There&#8217;s a small speedup by not using method missing for frequently delegated methods.</p>

  </div>
</div>
<div class="tags">
  
</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


119
120
121</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/plugin.rb', line 119</span>

def options
  compiler.options
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="respond_to?-instance_method">
  
    - (<tt>Boolean</tt>) <strong>respond_to?</strong>(method) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>For parity with method_missing</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Boolean</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


114
115
116</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/plugin.rb', line 114</span>

def respond_to?(method)
  super || compiler.respond_to?(method)
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="update_stylesheets-instance_method">
  
    - <strong>update_stylesheets</strong>(individual_files = []) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Updates out-of-date stylesheets.</p>

<p>Checks each Sass/SCSS file in <a href="file.SASS_REFERENCE.html#template_location-option" tppabs="http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#template_location-option" title="&lt;code&gt;:template_location&lt;/code&gt;"><code>:template_location</code></a> to see if it&#8217;s been modified more recently than the corresponding CSS file in <a href="file.SASS_REFERENCE.html#css_location-option" tppabs="http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#css_location-option" title="&lt;code&gt;:css_location&lt;/code&gt;"><code>:css_location</code></a>. If it has, it updates the CSS file.</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt>Array&lt;(String, String)&gt;</tt>)</span>
      
      
        <span class='name'>individual_files</span>
      
      
        <em class="default">(defaults to: <tt>[]</tt>)</em>
      
      
        &mdash;
        A list of files to check for updates <strong>in addition to those specified by the <a href="file.SASS_REFERENCE.html#template_location-option" tppabs="http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#template_location-option" title="&lt;code&gt;:template_location&lt;/code&gt; option"><code>:template_location</code> option</a>.</strong> The first string in each pair is the location of the Sass/SCSS file, the second is the location of the CSS file that it should be compiled to.
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


79
80
81
82</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/plugin.rb', line 79</span>

def update_stylesheets(individual_files = [])
  return if options[:never_update]
  compiler.update_stylesheets(individual_files)
end</pre>
    </td>
  </tr>
</table>
</div>
    
  </div>

</div>
    
    <div id="footer">
  Generated on Fri Mar  8 20:33:58 2013 by 
  <a href="javascript:if(confirm(%27http://yardoc.org/  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?%27))window.location=%27http://yardoc.org/%27" tppabs="http://yardoc.org/" title="Yay! A Ruby Documentation Tool">yard</a>
  0.5.3 (ruby-1.8.7).
</div>


  <script type="text/javascript">
  var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  </script>
  <script type="text/javascript">
  try {
  var pageTracker = _gat._getTracker("UA-535380-8");
  pageTracker._trackPageview();
  } catch(err) {}</script>


  </body>
</html>